/* 全局样式 */

*{
    margin: 0;
    padding: 0;
}
body{
    height: 100vh;
    background-image: url('https://img.zcool.cn/community/01d7945e1e8ee6a801216518f2a329.jpg@3000w_1l_0o_100sh.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

 /* 主要内容盒子 */
.mainbox{
    width: 70%;
    min-width: 350px;
    background-color: #dad1c6b1;
    margin: 0 auto;
    padding: 10px;
    padding-top: 50px;
    min-height: 80%;
    flex-grow: 1;
}

/*页尾*/
footer{
    background-color: rgba(174, 160, 142, 0.864);
    text-align: center;
    height: 10%;
    font-size: 20px;
    padding: 20px 0;
}

/*顶部固定导航栏样式*/
.navbar{
    position: fixed;
    display: flex;
    height: 3rem;
    width: 100%;
    margin-top: 0;
    background-color: #efd4ad;
    border-radius: 5px;   
}
.logo{
    text-align: center;
    margin: auto 13%;
}
.logo a{
    text-decoration: none;
    color: #794604;
    font-family: 华文细黑;
    font-size: 35px;
}   
.navbar ul{   
    display: flex;
}
.navbar ul li{
    width: 7rem;
    list-style: none;
    text-align:center;
    margin: auto 0; 
}
.navbar ul li a {
    width: 7rem;
    font-size: 2rem;
    color: #d36b10;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-family: 华文新魏;   
}
.navbar ul li a:hover{
    color: #f48e09;
    background-color: #f5e8af7e; 
    scale: 1.15;
    border-radius: 5px;
}
/* 二级菜单 */
.navbar ul li ul{
    position: absolute;
    display: none;
    width: 7rem;
    border-radius: 7px;
    height: fit-content;
    background-color: #e4ccb1;
}
/* .navbar ul li ul li{  
} */
.navbar ul li ul li a{
    font-size: 1.5rem;
    padding: 3px 0;
    
}
.navbar ul li ul li a:hover{
    /* color: #ba400c; */
    background: none;
}
.navbar ul li:hover ul{
    display: block;
}
